function updateClock() {
    const now = new Date();
    const seconds = now.getSeconds();
    const minutes = now.getMinutes();
    const hours = now.getHours();

    const secondsDegree = (seconds / 60) * 360 + 90;
    const minutesDegree = (minutes / 60) * 360 + 90;
    const hoursDegree = (hours % 12 / 12) * 360 + 90;

    document.querySelector('.hr').style.transform = `rotate(${secondsDegree}deg)`;
    document.querySelector('.mn').style.transform = `rotate(${minutesDegree}deg)`;
    document.querySelector('.sc').style.transform = `rotate(${hoursDegree}deg)`;
}

setInterval(updateClock, 1000);
updateClock(); 